package com.tgy.queue;

import lombok.Data;

/**
 * @Author: tgy
 * @Date: 2020-10-12 11:44
 */
@Data
public class Person implements Comparable<Person> {

    private String name;

    private Integer numBound;

    public Person(String name, Integer numBound) {
        this.name = name;
        this.numBound = numBound;
    }

    @Override
    public int compareTo(Person o) {
        return this.numBound - o.numBound;
    }
}
